<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/> 
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('queryForm');
}
function optConfirm(obj){
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	obj.disabled = true;
	var f = document.getElementById('tableForm');;
	f.action="o_assign.do";
	f.submit();
}

</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>:  订单派单 - <@s.m "global.list"/></div>
	<form class="ropt">
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form action="v_orderassignlist.do" method="post" style="padding-top:5px;" id="queryForm" >
<div>
订单编码: <input type="text" name="orderCode" value="${orderCode!}" style="width:100px"/>
用户名: <input type="text" name="userName" value="${userName!}" style="width:100px"/>
手机号：<input type="text" name="mobile" value="${mobile!}" style="width:100px"/>
开始时间：<input type="text" name="startTime" value="${startTime!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
结束时间：<input type="text" name="endTime" value="${endTime!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
订单状态: <@p.select name="status" value=status list=listDic headerKey="2" listKey="dicCode" listValue="dicName"  headerValue="待配送"/>
订单类型: <@p.select name="type" value=type list=listDic3 headerKey="" listKey="dicCode" listValue="dicName"  headerValue="cmsDictionary.type.allType"/>
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<input class="query" type="submit" value="<@s.m "global.query"/>"/> 
</div>
</form>
<form id="tableForm" method="post">
<div >
	<input class="del-button" type="button" value="派单" onclick="optConfirm(this);"/>
</div>
<@p.table value=pagination;orders,i,has_next><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${orders.id!}'/><#t/>
	</@p.column><#t/>
	<@p.column code="订单编号">${orders.orderCode!}</@p.column><#t/>
	<@p.column code="时间">${orders.createTime!}</@p.column><#t/>
	<@p.column code="配送日期">${orders.orderDate!}</@p.column><#t/>
	<@p.column code="配送时间">${orders.distributionTime!}</@p.column><#t/>
	<@p.column code="配菜">${orders.sideFood!}</@p.column><#t/> 
	<@p.column code="订单合计">${orders.orderPrice!}</@p.column><#t/>
	<@p.column code="用户姓名">${(orders.consigneeName)!""}</@p.column><#t/>
	<@p.column code="手机号">${(orders.mobile)!""}</@p.column><#t/>
	<@p.column code="商圈名称">${orders.tradeAreaName!}</@p.column><#t/>
	<@p.column code="写字楼名称">${orders.officeBuildingName!}</@p.column><#t/>
	<@p.column style="width:100px;" code="收货地址">${orders.consigneeAddr!}</@p.column><#t/>
	<@p.column code="付款方式">${orders.paywayName!}</@p.column><#t/>
	<@p.column code="订单状态">${orders.statusName!}</@p.column><#t/>
	<@p.column code="订单类型">${orders.typeName!}</@p.column><#t/>
	<@p.column code="global.operate" align="center">
		<a href="v_to_view_orders.do?id=${orders.id}&pageNo=${pageNo!}&orderCode=${orderCode!}&userName=${userName!}&shopId=${shopId!}&status=${status!}&type=${type!}&startTime=${startTime!}&endTime=${endTime!}&disAddId=${disAddId!}" class="pn-opt">查看</a> | <#rt/>
	
	   <#if 2==orders.status!"">
			<a href="v_assign.do?ids=${orders.id}"   class="pn-opt"> 派单</a> | <#t/>
		</#if>
		<#if 2!=orders.status!"">
			&nbsp;派单 | <#rt/>
		</#if>
	</@p.column><#t/>
</@p.table>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>